import { handleActions } from 'redux-actions'
import {  products_by_id_success } from '../actions/productInfo'
const initiaState = {}
const productInfoReducer = handleActions({
    [products_by_id_success]: (state,action) => {
        console.log(action.payload)
        return {
        ...action.payload
    }},
},initiaState)
export default productInfoReducer